package com.atgion.spzx.model.entity.ImageManagement;


import com.atgion.spzx.model.vo.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("picture_category")
public class PictureCategory extends BaseEntity {
    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "分类名")
    private String categoryName ;

    @Schema(description = "父类id")
    private Long categoryId ;

    @Schema(description = "排序")
    private Integer orderNum ;

    @Schema(description = "状态")
    private Integer status ;

    @Schema(description = "是否存在子节点")
    @TableField(exist = false)
    private Boolean hasChildren;
}
